/**
 * 
 */
package com.example.server.message;

import java.util.Map;

/**
 * @author tonyzhu
 * 
 */
public class ResultMessage extends AbstractMessage {

	protected int result;

	protected String error;

	protected Map<String, Object> info;

	public ResultMessage() {
	}

	public ResultMessage(AbstractMessage in) {
		this();

		this.setMethod(in.getMethod());
		this.setMessageId(in.getMessageId());
		this.setSessionId(in.getSessionId());
		this.setV(in.getV());
	}

	/**
	 * @return the _result
	 */
	public int getResult() {
		return result;
	}

	/**
	 * @param _result
	 *            the _result to set
	 */
	public void setResult(int result) {
		this.result = result;
	}

	/**
	 * @return the _error
	 */
	public String getError() {
		return error;
	}

	/**
	 * @param _error
	 *            the _error to set
	 */
	public void setError(String error) {
		this.error = error;
	}

	public Map<String, Object> getInfo() {
		return info;
	}

	public void setInfo(Map<String, Object> info) {
		this.info = info;
	}
}
